﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:liquidPopup="clr-namespace:Liquid;assembly=Liquid.Popup"
      xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" xmlns:local="clr-namespace:CityLife"
 
	xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
	x:Class="CityLife.MainPage">
    <UserControl.Resources>
       

    </UserControl.Resources>


    <Grid ShowGridLines="False">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Canvas x:Name="SplashLogin" Canvas.ZIndex="9999" Visibility="Collapsed"    HorizontalAlignment="Stretch" VerticalAlignment="Stretch"   Grid.Row="0" Grid.Column="0">
           
		    <Canvas.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0.099"/>
                    <GradientStop Color="#FF7080AB" Offset="0.452"/>
                    <GradientStop Color="Black" Offset="0.886"/>
                </LinearGradientBrush>
            </Canvas.Background>
            <Canvas.Effect>
                <BlurEffect/>
            </Canvas.Effect>
			<local:Splash x:Name="citysplash" VerticalAlignment="Center" Canvas.Left="150" Canvas.Top="50"/>
			<TextBlock Text="Metropoline" Foreground="#FF1A7C0E" FontSize="96" Canvas.Left="121" Canvas.Top="192" FontFamily="Franklin Gothic Heavy">
				<TextBlock.Effect>
					<DropShadowEffect BlurRadius="10" ShadowDepth="25"/>
				</TextBlock.Effect></TextBlock>
        </Canvas>
        <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Top"   Grid.Row="0" Grid.Column="0" Height="100">

            <controlsToolkit:DockPanel Grid.Row="0" Grid.Column="0" MinWidth="700"   LastChildFill="True"  HorizontalAlignment="Stretch" VerticalAlignment="Top" >
                <controlsToolkit:DockPanel Width="70" controlsToolkit:DockPanel.Dock="Right">

                    <TextBlock   x:Name="SaveIndicator" controlsToolkit:DockPanel.Dock="Top" TextWrapping="Wrap"   FontSize="10" FontWeight="Bold"  />
                    <Button   Visibility="Visible"   controlsToolkit:DockPanel.Dock="Bottom"   x:Name="ToggleFullScreenBTN" Click="ToggleFullScreenBTN_Click"     d:LayoutOverrides="VerticalAlignment"  />

                    <Button Height="20" Width="20" Content="+" controlsToolkit:DockPanel.Dock="Left" ClickMode="Press" Click="Button_Click"    />
                    <Button Height="20" Width="20" Content="-" Click="Button_Click_1"  controlsToolkit:DockPanel.Dock="Right"       />
                </controlsToolkit:DockPanel>

                <local:ScoreControl controlsToolkit:DockPanel.Dock="Top"  Grid.Column="1" Height="40" Width="400"  VerticalAlignment="Top"   x:Name="Score"  />

                <local:Jukebox   HorizontalAlignment="Left" controlsToolkit:DockPanel.Dock="Left" Margin="0,-54,0,0"  />
                <Button x:Name="StartCam" Width="80" Click="StartCam_Click">WebCam</Button>



            </controlsToolkit:DockPanel>
            
            
        </StackPanel>

      
        
       
         
       
 <StackPanel x:Name="ToolBoxStackPanel" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center"  Canvas.ZIndex="999" >

                <local:Clock x:Name="GameClock" Visibility="Collapsed" />

                <local:ToolBox  x:Name="ToolBoxLayer" VerticalAlignment="Top" Height="300" Opacity="0.1"/>
              </StackPanel>

    		 


        <Grid  x:Name="CityGlobalCanvas"    Background="#FF5797F2" MinHeight="600"  MinWidth="800"  Canvas.ZIndex="-1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">


          



            <Canvas Grid.Column="0" Grid.Row="0" x:Name="CityCanvas" Height="600" Width="600" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
                    <Canvas.Projection>
                        <PlaneProjection RotationZ="0" x:Name="CityPerspective"/>
                    </Canvas.Projection>
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform x:Name="CityScale" ScaleX="0.7" ScaleY="0.7"/>
                            <SkewTransform AngleX="-20" AngleY="-20"/>
                            <RotateTransform Angle="45"/>

                        </TransformGroup>
                    </Canvas.RenderTransform>



             


                    <Border  BorderBrush="Gray"   BorderThickness="1" VerticalAlignment="Center"   HorizontalAlignment="Center">
                        <Grid x:Name="CityGrid"     UseLayoutRounding="True" ShowGridLines="False" Height="600" Width="600"   Background="#FF71F257"  MouseMove="CityGrid_MouseMove" MouseLeave="CityGrid_MouseLeave"    >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>

                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>
                                <ColumnDefinition Width="30"/>


                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>

                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="30"/>
  
                            </Grid.RowDefinitions>


  <local:Education1 Grid.Row="11" Grid.Column="8"></local:Education1>
    <local:Education1 Grid.Row="12" Grid.Column="8" RenderTransformOrigin="0.5,0.5">
    	<local:Education1.RenderTransform>
    		<TransformGroup>
    			<ScaleTransform/>
    			<SkewTransform AngleY="-29" AngleX="-6"/>
    			<RotateTransform/>
    			<TranslateTransform/>
    		</TransformGroup>
    	</local:Education1.RenderTransform>
     
    	 
    	 </local:Education1>
	  <local:Education1 Grid.Row="11" Grid.Column="9"></local:Education1>
                            <!--<local:Road1L Grid.Row="10" Grid.Column="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5" >
                                <local:Road1L.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="270"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </local:Road1L.RenderTransform>
                            </local:Road1L>

                            <local:Road1L Grid.Row="10" Grid.Column="7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5" >
                                <local:Road1L.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="0"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </local:Road1L.RenderTransform>
                            </local:Road1L>

                            <local:Road1I Grid.Row="10" Grid.Column="9" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5" >
                                <local:Road1I.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="90"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </local:Road1I.RenderTransform>
                            </local:Road1I>

                          
                            <local:Road1T Grid.Row="10" Grid.Column="8" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RenderTransformOrigin="0.5,0.5" >
                                <local:Road1T.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="270"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </local:Road1T.RenderTransform>
                            </local:Road1T>


                            <local:Road1I Grid.Row="9" Grid.Column="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ></local:Road1I>
                            <local:Road1I Grid.Row="8" Grid.Column="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ></local:Road1I>
                            <local:Road1I Grid.Row="7" Grid.Column="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ></local:Road1I>
                            <local:Road1I Grid.Row="6" Grid.Column="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ></local:Road1I>


                            <local:Road1I Grid.Row="9" Grid.Column="7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></local:Road1I>
                            <local:Road1I Grid.Row="8" Grid.Column="7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ></local:Road1I>
                            <local:Road1I Grid.Row="7" Grid.Column="7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></local:Road1I>
                            <local:Road1I Grid.Row="6" Grid.Column="7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></local:Road1I>-->
                            <!--<local:Road1End Grid.Row="10" Grid.Column="10" ></local:Road1End>
                        <local:Road1I Grid.Row="9" Grid.Column="10" ></local:Road1I>

                        <local:Road1I Grid.Row="9" Grid.Column="10" ></local:Road1I>

                        <local:Road1I Grid.Row="8" Grid.Column="10" ></local:Road1I>

                        <local:Road1I Grid.Row="7" Grid.Column="10" ></local:Road1I>

                        <local:Road1I Grid.Row="6" Grid.Column="10" ></local:Road1I>

                        <local:Road1T Grid.Row="5" Grid.Column="10" ></local:Road1T>

                        <local:Road1Intersection Grid.Row="5" Grid.Column="9" ></local:Road1Intersection>


                        <local:Car1 Grid.Row="5" Grid.Column="9" RenderTransformOrigin="15,15" >
                        	<local:Car1.RenderTransform>
                        		<TransformGroup>
                        			<ScaleTransform ScaleX="-1"/>
                        			<SkewTransform AngleX="0" AngleY="0"/>
                        			<RotateTransform Angle="-90"/>
                        			<TranslateTransform Y="30"/>
                        		</TransformGroup>
                        	</local:Car1.RenderTransform></local:Car1>-->

                        </Grid>
                    </Border>
          

               
            </Canvas>

  <Canvas Grid.Column="0" Grid.Row="0" x:Name="WindowCanvas" Height="600" Width="600">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform x:Name="WindowCanvasCityScale" ScaleX="0.7" ScaleY="0.7"/>
                       

                    </TransformGroup>
                </Canvas.RenderTransform>
                <local:ElementToolBar x:Name="ElementInformation" Visibility="Visible">
                    <local:ElementToolBar.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform AngleX="0" AngleY="0"/>
                            <RotateTransform Angle="0"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </local:ElementToolBar.RenderTransform>
                </local:ElementToolBar>
            </Canvas>

          </Grid>

           




 
        <Button Height="36" Width="56" Content="Button" Canvas.Left="8" Canvas.Top="556" x:Name="Share" ClickMode="Release" Visibility="Collapsed"/>
        <local:Neighbours x:Name="FriendsListbox" Width="550" Height="100" Grid.Row="0" Grid.Column="0" VerticalAlignment="Bottom" HorizontalAlignment="Center" VerticalContentAlignment="Bottom"  />

      
    </Grid>

</UserControl>